#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
    int i = 0, count = 0;
    for (i = 100; i <= 999; i++)
    {
        int j = 0;
        for (j = 2; j < i; j++)
        {
            if (i % j == 0)
                break;
        }
        if (j == i)
            count++;
    }
    printf("%d\n", count);
    return 0;
}
